#ifndef GLOBALMANAGE_H
#define GLOBALMANAGE_H

#include <QObject>


//用户类型
enum ELoginUserType
{
    //未登录
    Elut_Unkown = 0,
    //普通用户
    Elut_Normaler = 1,
    //管理员
    Elut_Admin = 2,
    //用服
    Elut_Service = 3,
    //生产
    Elut_Producer = 4,
    //开发
    Elut_Developer = 5

};

class GlobalManage : public QObject
{
    Q_OBJECT
public:
    explicit GlobalManage(QObject *parent = 0);
    ~GlobalManage();
public:
     static GlobalManage *instance();

public:
    bool FileIsExist(QString strFile);  // 判断文件是否存在

    //格式化保留两位小数字符串输出
    bool FormatStringWithTwoDecimal(QString *text);



    //lijuan add 当前登录用户信息读取
    //获取用户类型
    ELoginUserType GetLoginUserType();
};

#endif // GLOBALMANAGE_H
